// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'productid',
        footer: "Foots",
        cnName: '产品锁定',
        name: 'ysl_product_lock',
        url: "/ysl_product_lock/",
        sortName: "productid"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"produce_type":"","codeid":"","production_processes":"","lock_starttime":"","locl_endtime":"","lock_reason":"","lock_people":""};
    const editFormOptions = [[{"dataKey":"workorder_type","data":[],"title":"产品类型","field":"produce_type","type":"select"}],
                              [{"dataKey":"工单编号","data":[],"title":"产品编号","field":"codeid","type":"select"}],
                              [{"dataKey":"新工艺工序","data":[],"title":"工艺","field":"production_processes","type":"select"}],
                              [{"title":"锁定开始时间","field":"lock_starttime","type":"datetime"}],
                              [{"title":"锁定结束时间","field":"locl_endtime","type":"datetime"}],
                              [{"title":"锁定原因","field":"lock_reason","type":"text"}],
                              [{"title":"锁定人姓名","field":"lock_people","type":"text"}]];
    const searchFormFields = {"produce_type":"","codeid":"","production_processes":"","lock_starttime":"","locl_endtime":""};
    const searchFormOptions = [[{"dataKey":"workorder_type","data":[],"title":"产品类型","field":"produce_type","type":"select"}],[{"dataKey":"工单编号","data":[],"title":"产品编号","field":"codeid","type":"select"}],[{"dataKey":"新工艺工序","data":[],"title":"工艺","field":"production_processes","type":"select"}],[{"title":"锁定开始时间","field":"lock_starttime","type":"date"},{"title":"锁定结束时间","field":"locl_endtime","type":"date"}]];
    const columns = [{field:'productid',title:'主键',type:'bigint',sort:true,width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'produce_type',title:'产品类型',type:'string',bind:{ key:'workorder_type',data:[]},width:180,align:'left'},
                       {field:'codeid',title:'产品编号',type:'string',bind:{ key:'工单编号',data:[]},width:180,align:'left'},
                       {field:'production_processes',title:'工艺',type:'string',bind:{ key:'新工艺工序',data:[]},width:220,align:'left'},
                       {field:'lock_starttime',title:'锁定开始时间',type:'datetime',width:150,align:'left'},
                       {field:'locl_endtime',title:'锁定结束时间',type:'datetime',width:150,align:'left'},
                       {field:'lock_reason',title:'锁定原因',type:'string',width:120,align:'left'},
                       {field:'lock_statues',title:'状态',type:'string',width:120,align:'left'},
                       {field:'lock_people',title:'锁定人姓名',type:'string',width:120,align:'left'},
                       {field:'field1',title:'备用字段1',type:'string',width:180,hidden:true,align:'left'},
                       {field:'field2',title:'备用字段2',type:'string',width:180,hidden:true,align:'left'},
                       {field:'field3',title:'备用字段3',type:'string',width:180,hidden:true,align:'left'},
                       {field:'field4',title:'备用字段4',type:'string',width:180,hidden:true,align:'left'},
                       {field:'createtime',title:'操作时间',type:'string',width:120,align:'left'},
                       {field:'field5',title:'备用字段5',type:'string',width:180,hidden:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}